export default {
    task: {
        type: Object,
        default: () => ({
            data: [
                {
                    id: '111',
                    text: '王某某',
                    type: 'project',
                    progress: 0,
                    open: true,
                },
                {
                    id: 12,
                    text: 'ui走查修改--管控平台',
                    start_date: '01-03-2023',
                    duration: '3',
                    parent: '111',
                    progress: 0,
                    open: true,
                },
                {
                    id: 13,
                    text: 'ui走查修改--发布平台',
                    start_date: '06-03-2023',
                    duration: '5',
                    parent: '111',
                    progress: 0,
                    open: true,
                },
                {
                    id: 14,
                    text: 'ui走查修改--门户',
                    start_date: '13-03-2023',
                    duration: '3',
                    parent: '111',
                    progress: 0,
                    open: true,
                },
                {
                    id: '222',
                    text: '张某某',
                    type: 'project',
                    progress: 0,
                    open: false,
                },
                {
                    id: 22,
                    text: 'antdb数据库嵌入',
                    start_date: '01-03-2023',
                    duration: '3',
                    parent: '222',
                    progress: 0,
                    open: true,
                },
                {
                    id: 23,
                    text: '数据组织添加目录树',
                    start_date: '06-03-2023',
                    duration: '5',
                    parent: '222',
                    progress: 0,
                    open: true,
                },
                {
                    id: 24,
                    text: '数据服务、门户，调用次数差距很很很很很',
                    start_date: '13-03-2023',
                    duration: '3',
                    parent: '222',
                    progress: 0,
                    open: true,
                },
                {
                    id: '333',
                    text: '孙某某',
                    type: 'project',
                    progress: 0,
                    open: false,
                },
                {
                    id: 32,
                    text: '资产平台修复2.1.0',
                    start_date: '01-03-2023',
                    duration: '3',
                    parent: '333',
                    progress: 0,
                    open: true,
                },
                {
                    id: 33,
                    text: '第三周巡检-资产',
                    start_date: '06-03-2023',
                    duration: '5',
                    parent: '333',
                    progress: 0,
                    open: true,
                },
                {
                    id: 34,
                    text: '第四周巡检-资产',
                    start_date: '13-03-2023',
                    duration: '3',
                    parent: '333',
                    progress: 0,
                    open: true,
                },
            ],
            links: [
                {
                    id: '10',
                    source: '111',
                    target: '12',
                    type: '1',
                },
                { id: '11', source: '12', target: '13', type: '0' },
                { id: '12', source: '13', target: '14', type: '0' },
                {
                    id: '20',
                    source: '222',
                    target: '22',
                    type: '1',
                },
                { id: '21', source: '22', target: '23', type: '0' },
                { id: '22', source: '23', target: '24', type: '0' },
                {
                    id: '30',
                    source: '333',
                    target: '32',
                    type: '1',
                },
                { id: '31', source: '32', target: '33', type: '0' },
                { id: '32', source: '33', target: '34', type: '0' },
            ],
        }),
    },
    useDateArr: {
        type: Boolean,
        default: false,
        description: '是否使用传入时间设置时间轴',
    },
    dateArr: {
        type: Array,
        default: () => [
            `${new Date().getFullYear() - 1},${new Date().getMonth()},${new Date().getDay()}`,
            `${new Date().getFullYear() + 1},${new Date().getMonth()},${new Date().getDay()}`,
        ],
        description: '时间轴间隔日期',
    },
    autoScheduling: {
        type: Boolean,
        default: true,
        description: '自动规划',
    },
    columnButton: {
        type: Array,
        default: () => [
            {
                name: '编辑',
                icon: 'sept-icon-edit',
                key: 'edit',
            },
            {
                name: '添加',
                icon: 'sept-icon-jia',
                key: 'add',
            },
            {
                name: '删除',
                icon: 'sept-icon-shanchu',
                key: 'del',
            },
        ],
        description: '表格操作列',
    },
    gridColumns: {
        type: Array,
        default: () => [
            {
                name: 'text',
                label: '名称',
                tree: true,
                width: '180',
                resize: true,
            },
            // {
            //     name: 'start_date',
            //     label: '开始时间',
            //     align: 'center',
            //     resize: true,
            // },
            // {
            //     name: 'duration',
            //     label: '持续时间',
            //     align: 'center',
            //     resize: true,
            // },
        ],
    },
    readonly: {
        type: Boolean,
        default: false,
        description: '只读模式,只能通过数据操作视图',
    },
    showLinks: {
        type: Boolean,
        default: true,
        description: '允许显示鼠标移动到进度条上时显示前后两个小圆点（是否显示依赖连线）',
    },

    taskHtml: {
        type: Function,
        default: (start, end, task) => task.text,
    },
};
